package com.yaodian100.ec.order.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.yaodian100.core.form.entity.Attribute;

/**
 * 
 * @author yanling.wu
 * 
 */
@Entity
@Table(name = "CRM_INTERCEPT_ORDER_VALUE")
public class InterceptOrderValue implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Attribute attribute;
	private String id;
	private String value;
	private String name;
	private InterceptOrder interceptOrder;

	/**
	 * @return the name
	 */
	@Column(name = "name", length = 100)
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the value
	 */
	@Column(length = 4000)
	public String getValue() {
		return value;
	}

	/**
	 * @param value the value to set
	 */
	public void setValue(String value) {
		this.value = value;
	}

	/**
	 * @return the interceptOrder
	 */

	@ManyToOne
	public InterceptOrder getInterceptOrder() {
		return interceptOrder;
	}

	/**
	 * @param interceptOrder the interceptOrder to set
	 */
	public void setInterceptOrder(InterceptOrder interceptOrder) {
		this.interceptOrder = interceptOrder;
	}

	/**
	 * @return the attribute
	 */
	@ManyToOne
	public Attribute getAttribute() {
		return attribute;
	}

	/**
	 * @param attribute the attribute to set
	 */
	public void setAttribute(Attribute attribute) {
		this.attribute = attribute;
	}

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

}
